% This software is provided 'as-is', without any express or implied
% warranty.  In no event will the authors be held liable for any damages
% arising from the use of this software.
% Permission is granted to anyone to use this software for any purpose,
% including commercial applications, and to alter it and redistribute it
% freely
-module(erlyface_sup).
-author("Jason Shaw <jasonshaw@gmail.com>").

-behaviour(supervisor).

-export([start/0]).
-export([init/1]).
-export([start_link/0]).

start() -> start_link().

start_link() ->
	supervisor:start_link({local, ?MODULE}, ?MODULE, []).

init([]) ->
	Erlyface = {erlyface, {erlyface, start_link, []}, permanent, 5000, worker, []},
	{ok, {{one_for_all, 5, 30}, [Erlyface]}}.